<?php
class Bodega extends AppModel {

	var $name = 'Bodega';
	var $useTable = 'bodegas';
	var $validate = array(
		'id' => VALID_NOT_EMPTY,
		'nombre' => VALID_NOT_EMPTY,
		'pais' => VALID_NOT_EMPTY,
		'estado' => VALID_NOT_EMPTY,
		'ciudad' => VALID_NOT_EMPTY,
		'colonia' => VALID_NOT_EMPTY,
		'calle' => VALID_NOT_EMPTY,
		'num' => VALID_NOT_EMPTY,
		'cp' => VALID_NOT_EMPTY,
	);
	
	var $hasAndBelongsToMany = array(
		'Vehiculo' => array('className'    => 'Vehiculo',
                    'joinTable'    => 'bodegas_vehiculos',
                    'foreignKey'   => 'bodega_id',
                    'associationForeignKey'=> 'vehiculo_id',
                    'conditions'   => '',
                    'order'        => '',
					'limit'        => '',
                    'unique'       => true,
                    'finderQuery'  => '',
                    'deleteQuery'  => '',) ,
    );		
}
?>
